import request from '@/utils/request'

// 查询进销存_库存变化明细列表
export function listKcbhmx(query) {
  return request({
    url: '/system/kcbhmx/list',
    method: 'get',
    params: query
  })
}

// 查询进销存_库存变化明细详细
export function getKcbhmx(kcrzid) {
  return request({
    url: '/system/kcbhmx/' + kcrzid,
    method: 'get'
  })
}

// 新增进销存_库存变化明细
export function addKcbhmx(data) {
  return request({
    url: '/system/kcbhmx',
    method: 'post',
    data: data
  })
}

// 修改进销存_库存变化明细
export function updateKcbhmx(data) {
  return request({
    url: '/system/kcbhmx',
    method: 'put',
    data: data
  })
}

// 删除进销存_库存变化明细
export function delKcbhmx(kcrzid) {
  return request({
    url: '/system/kcbhmx/' + kcrzid,
    method: 'delete'
  })
}
